package com.gxa.opo.hualian.entity;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {//49分钟
    private Integer id;

    private String name;

    private String pwd;

    private String phone;

    private Date regTime;

    private Integer points;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getRegTime() {
        return regTime;
    }

    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public User(Integer id, String name, String pwd, String phone, Date regTime, Integer points) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.phone = phone;
        this.regTime = regTime;
        this.points = points;
    }

    public User(){
        System.out.println("空参构造必须要有");
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", phone='" + phone + '\'' +
                ", regTime=" + regTime +
                ", points=" + points +
                '}';
    }
}
